local action = "../build/".._ACTION or ".."
local source = "../source"

solution "Audier1"
	configurations { "Debug", "Release" }
	location	( action )
	objdir		( action .. "/obj" )
	
	configuration { "Debug" }
		targetdir ( action .. "/bin/debug" )
		
	configuration { "Release" }
		targetdir ( action .. "/bin/release" )
		
		
project "Audier1"
	location ( action )
	language	"C++"
	kind		"ConsoleApp"
	files		{ source .. "/**.h", source .. "/**.cpp" }
	
	if os.is( "windows" )	then
			defines { "WIN32" }
	end
	
	configuration { "Debug*" }
		defines { "_DEBUG", "DEBUG" }
		flags   { "Symbols" }
		if os.is( "windows" )	then
			links		{ "tagd" }
		else
			links		{ "tag","boost_system","boost_filesystem" }
		end
 
	  configuration { "Release*" }
		defines { "NDEBUG" }
		flags   { "Optimize" }
		if os.is( "windows" )	then
			links		{ "tag" }
		else
			links		{ "tag","boost_system","boost_filesystem" }
		end

	
if _ACTION == "clean"  then
	for a in premake.action.each() do
    -- action trigger is "vs2008", "gmake", etc.
    os.rmdir(a.trigger)
  end
end
		
